var oneEvent = require("mlib/evt/one-event");
var prefix = (function () {
	  var styles = window.getComputedStyle(document.documentElement, ''),
		pre = (Array.prototype.slice
		  .call(styles)
		  .join('') 
		  .match(/-(moz|webkit|ms)-/) || (styles.OLink === '' && ['', 'o'])
		)[1],
		dom = ('WebKit|Moz|MS|O').match(new RegExp('(' + pre + ')', 'i'))[1];		
	  return pre;
})();
module.exports = function animationEnd(node,evtname,callback) {	
	oneEvent(node, prefix+evtname, function () {
		if (callback){ callback();}
	}, false);	
}